Skip to main content

Class: UserApi

UserApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new UserApi(configuration?, basePath?, fetch?)

Parameters

NameTypeDefault value
configuration?Configurationundefined
basePathstringBASE_PATH
fetchFetchAPIportableFetch

Inherited from

BaseAPI.constructor

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Properties

basePath

Protected basePath: string = BASE_PATH

Inherited from

BaseAPI.basePath

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60


configuration

Protected configuration: Configuration

Inherited from

BaseAPI.configuration

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:58


fetch

Protected fetch: FetchAPI = portableFetch

Inherited from

BaseAPI.fetch

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Methods

userApiKeysGet

userApiKeysGet(options?): Promise<MainGetApiKeysResp[]>

This endpoint is used to get API keys for a user. In estuary, each user can be given multiple API keys (tokens). This endpoint can be used to retrieve all available API keys for a given user.

Summary

Get API keys for a user

Throws

Memberof

UserApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<MainGetApiKeysResp[]>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:7737


userApiKeysKeyDelete

userApiKeysKeyDelete(key, options?): Promise<Response>

This endpoint is used to revoke a user API key. In estuary, every user is assigned with an API key, this API key is generated and issued for each user and is primarily use to access all estuary features. This endpoint can be used to revoke the API key thats assigned to the user.

Summary

Revoke a User API Key.

Throws

Memberof

UserApi

Parameters

NameTypeDescription
keystringKey
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:7749


userApiKeysPost

userApiKeysPost(expiry?, perms?, options?): Promise<MainGetApiKeysResp>

This endpoint is used to create API keys for a user. In estuary, each user is given an API key to access all features.

Summary

Create API keys for a user

Throws

Memberof

UserApi

Parameters

NameTypeDescription
expiry?stringExpiration - Expiration - Valid time units are ns, us (or µs), ms, s, m, h. for example 300h
perms?stringPermissions -- currently unused
options?anyOverride http request option.

Returns

Promise<MainGetApiKeysResp>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:7762


userExportGet

userExportGet(options?): Promise<string>

This endpoint is used to get API keys for a user.

Summary

Export user data

Throws

Memberof

UserApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:7773


userStatsGet

userStatsGet(options?): Promise<MainUserStatsResponse>

This endpoint is used to create API keys for a user.

Summary

Create API keys for a user

Throws

Memberof

UserApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<MainUserStatsResponse>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:7784